<div class="left_konten">
<div class="breadcumbs"><?php echo $cumb;?></div>
<div class="detail_product">
<div class="order_content">                        
<h3>Finish order</h3>
<strong>Order success, the following details of your order</strong>
		
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="shoppingTable">
 <tbody>
<tr>
    <td width="20%"><strong>Time Order</strong></td>
    <td width="80%"><?php echo $order->order_date;?></td>
  </tr>
  <tr>
    <td width="20%"><strong>Name</strong></td>
    <td width="80%"><?php echo $order->nama;?></td>
  </tr>
  <tr>
    <td width="13%"><strong>Phone</strong></td>
    <td width="87%"><?php echo $order->telp;?></td>
  </tr>
  <tr>
    <td width="13%"><strong>Mobile Phone</strong></td>
    <td width="87%"><?php echo $order->hp;?></td>
  </tr>
  <tr>
    <td width="13%"><strong>Email</strong></td>
    <td width="87%"><?php echo $order->email;?></td>
  </tr>
  <tr>
    <td width="13%"><strong>Address</strong></td>
    <td width="87%"> <?php echo $order->alamat ?>,<?php echo $order->kota?>,<?php echo $order->nama_kabupaten?>,<?php echo $order->nama_provinsi?>,<?php echo $order->kodepos?></td>
  </tr>
    <tr>
    <td width="13%"><strong>Rekening</strong></td>
    <td width="87%"> <?php echo $order->nama_rek ?> - <?php echo $order->nama_bank?> - <?php echo $order->no_rek ?></td>
  </tr>
   <tr>
    <td width="13%"><strong>Service Delivery</strong></td>
    <td width="87%"><?php 
	if ($order->lokasi == 1):
		echo '-';
	else:
		echo $order->log_nama;
	endif;
	?></td>
  </tr>
   <tr>
    <td width="13%"><strong>Order Code</strong></td>
    <td width="87%"><?php echo $order->order_code;?></td>
  </tr>

</tbody>
</table>		
<br />
<br />
<h2>Detail Order</h2>
	<table width="1" border="0" cellpadding="0">
					<thead>
							<!-- <th>Item</th> -->
							 <th>Item</th>
                             <th>Size</th>
							 <th>Price</th>
							<th>Qty</th>
						   <th>Sub Total</th>
							
						  </thead>
					<?php foreach($det_order as $det_order):?>
						<tr>
						<td class="isi_tab"><?php echo $det_order['nama_produk']; ?></td>
                                                 <td style="text-align:center;"><?php echo getSize($det_order['ms_size_id']); ?></td>
							<?php if($det_order['persen_diskon'] != 0):?>
								<td style="text-align:right;"><?php echo formatHarga(getPriceDiskon($det_order['harga'],$det_order['persen_diskon']), 'lengkap');?></td>
							<?php else:?>
								<td style="text-align:right;"><?php echo formatHarga($det_order['harga'], 'lengkap');?></td>
							<?php endif;?>
							<td style="text-align:center;"><?php echo $det_order['det_jml']; ?></td>
							<td style="text-align:right;"><?php echo formatHarga($det_order['det_subtotal'], 'lengkap');?></td>
						
						

						
						</tr>
					<?php endforeach; ?>   
					</tr>            
					<tr>
						<td colspan="4" class="cart_total"><span class="red">Service Delivery: </span></td>
						<td style="text-align:right;"><?php 
							if ($order->lokasi == 1):
								echo '-';
							else:
								echo formatHarga($order->log_biaya,'lengkap');
							endif;
						?></td>                   
					</tr> 
					<tr>
						<td colspan="4" class="cart_total"><span class="red">TOTAL: </span></td>
						<td style="background-color:#CCC;text-align:right;"><?php echo formatHarga($order->total,'lengkap')?></td>                   
					</tr>    
				</table>
				
		<input name="simpan" class="submit" value="Print" type="submit" onclick="window.open('<?php echo base_url().'order/cetak/'.$key_order?>')"> 
	<br />
	<br />
	<br />
</div>
</div>
</div>

